home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 …ember: Reference Library / Apple Developer Reference Library (December 1999) (Disk 1).iso / pc / technical documentation / develop / develop issue 24 / develop issue 24 code / new device drivers / PCI Driver Sample / NCR_DriverProject / Framework NCR Sample Discussion < prev    next >
MacBinary  |  1995-07-24  |  9.8 KB  |  [TEXT/ttxt]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Mon Jul 24 17:34:24 1995, modified Mon Jul 24 17:34:24 1995, creator SimpleText, type ASCII, 9277 bytes "Framework NCR Sample Discussion" , at 0x24bd 496 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[ttxt]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 1f 46 72 61 6d 65 77 | 6f 72 6b 20 4e 43 52 20 |..Framew|ork NCR |
|00000010| 53 61 6d 70 6c 65 20 44 | 69 73 63 75 73 73 69 6f |Sample D|iscussio|
|00000020| 6e 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |n.......|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 74 74 78 | 74 01 00 00 00 00 00 00 |.TEXTttx|t.......|
|00000050| 00 00 00 00 00 24 3d 00 | 00 01 f0 ac 39 c2 60 ac |.....$=.|....9.`.|
|00000060| 39 c2 60 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |9.`.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 7c e8 00 00 |........|....|...|
|00000080| 41 20 53 61 6d 70 6c 65 | 20 44 65 76 69 63 65 20 |A Sample| Device |
|00000090| 44 72 69 76 65 72 0d 66 | 6f 72 20 74 68 65 20 4e |Driver.f|or the N|
|000000a0| 65 77 20 44 65 76 69 63 | 65 20 44 72 69 76 65 72 |ew Devic|e Driver|
|000000b0| 20 46 72 61 6d 65 77 6f | 72 6b 0d 0d 4d 61 72 74 | Framewo|rk..Mart|
|000000c0| 69 6e 20 4d 69 6e 6f 77 | 0d 44 65 63 65 6d 62 65 |in Minow|.Decembe|
|000000d0| 72 20 32 33 2c 20 31 39 | 39 34 20 28 69 6e 20 70 |r 23, 19|94 (in p|
|000000e0| 72 6f 67 72 65 73 73 29 | 0d 3d 3d 3d 3d 3d 3d 3d |rogress)|.=======|
|000000f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000100| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000110| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000120| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000130| 3d 3d 3d 3d 0d 0d 49 6e | 74 72 6f 64 75 63 74 69 |====..In|troducti|
|00000140| 6f 6e 0d 7e 7e 7e 7e 7e | 7e 7e 7e 7e 7e 0d 54 68 |on.~~~~~|~~~~~.Th|
|00000150| 69 73 20 69 73 20 61 20 | 73 61 6d 70 6c 65 20 64 |is is a |sample d|
|00000160| 65 76 69 63 65 20 64 72 | 69 76 65 72 20 74 68 61 |evice dr|iver tha|
|00000170| 74 20 69 6c 6c 75 73 74 | 72 61 74 65 73 20 74 68 |t illust|rates th|
|00000180| 65 20 6e 65 77 20 64 72 | 69 76 65 72 20 61 72 63 |e new dr|iver arc|
|00000190| 68 69 74 65 63 74 75 72 | 65 20 74 68 61 74 0d 77 |hitectur|e that.w|
|000001a0| 69 6c 6c 20 62 65 63 6f | 6d 65 20 61 76 61 69 6c |ill beco|me avail|
|000001b0| 61 62 6c 65 20 77 69 74 | 68 20 74 68 65 20 50 6f |able wit|h the Po|
|000001c0| 77 65 72 20 4d 61 63 69 | 6e 74 6f 73 68 20 6d 6f |wer Maci|ntosh mo|
|000001d0| 64 65 6c 73 20 74 68 61 | 74 20 73 75 70 70 6f 72 |dels tha|t suppor|
|000001e0| 74 20 50 43 49 20 62 75 | 73 2e 20 54 68 65 0d 64 |t PCI bu|s. The.d|
|000001f0| 72 69 76 65 72 20 61 72 | 63 68 69 74 65 63 74 75 |river ar|chitectu|
|00000200| 72 65 20 77 69 6c 6c 20 | 62 65 20 75 73 65 64 20 |re will |be used |
|00000210| 6f 6e 20 66 75 74 75 72 | 65 20 4d 61 63 69 6e 74 |on futur|e Macint|
|00000220| 6f 73 68 20 6f 70 65 72 | 61 74 69 6e 67 20 73 79 |osh oper|ating sy|
|00000230| 73 74 65 6d 20 72 65 6c | 65 61 73 65 73 0d 66 6f |stem rel|eases.fo|
|00000240| 72 20 50 6f 77 65 72 20 | 50 43 20 61 6e 64 20 36 |r Power |PC and 6|
|00000250| 38 30 30 30 20 6d 61 63 | 68 69 6e 65 73 2e 20 54 |8000 mac|hines. T|
|00000260| 68 65 20 73 61 6d 70 6c | 65 20 68 61 73 20 74 68 |he sampl|e has th|
|00000270| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 63 68 61 72 |e follow|ing char|
|00000280| 61 63 74 65 72 69 73 74 | 69 63 73 3a 0d a5 09 53 |acterist|ics:...S|
|00000290| 6d 61 6c 6c 3a 20 6d 6f | 73 74 20 6f 66 20 74 68 |mall: mo|st of th|
|000002a0| 65 20 63 6f 64 65 20 69 | 73 20 d2 61 64 6d 69 6e |e code i|s .admin|
|000002b0| 69 73 74 72 61 74 69 76 | 65 d3 20 d1 20 61 6c 6d |istrativ|e. . alm|
|000002c0| 6f 73 74 20 61 6c 6c 20 | 63 6f 64 65 20 74 68 61 |ost all |code tha|
|000002d0| 74 20 69 73 0d 73 70 65 | 63 69 66 69 63 20 74 6f |t is.spe|cific to|
|000002e0| 20 74 68 65 20 70 61 72 | 74 69 63 75 6c 61 72 20 | the par|ticular |
|000002f0| 68 61 72 64 77 61 72 65 | 20 69 73 20 69 73 6f 6c |hardware| is isol|
|00000300| 61 74 65 64 20 69 6e 74 | 6f 20 61 20 66 65 77 20 |ated int|o a few |
|00000310| 73 75 62 72 6f 75 74 69 | 6e 65 73 2e 0d a5 09 43 |subrouti|nes....C|
|00000320| 6f 6d 70 6c 65 74 65 3a | 20 74 68 65 20 73 61 6d |omplete:| the sam|
|00000330| 70 6c 65 20 63 72 65 61 | 74 65 73 20 61 6e 20 61 |ple crea|tes an a|
|00000340| 73 79 6e 63 68 72 6f 6e | 6f 75 73 20 64 65 76 69 |synchron|ous devi|
|00000350| 63 65 20 64 72 69 76 65 | 72 20 74 68 61 74 20 73 |ce drive|r that s|
|00000360| 75 70 70 6f 72 74 73 20 | 74 68 65 0d 4e 43 52 20 |upports |the.NCR |
|00000370| 38 32 35 30 20 69 6e 74 | 65 72 66 61 63 65 20 63 |8250 int|erface c|
|00000380| 61 72 64 20 74 68 61 74 | 20 75 73 65 73 20 74 68 |ard that| uses th|
|00000390| 65 20 4e 43 52 35 33 43 | 38 32 35 20 50 43 49 20 |e NCR53C|825 PCI |
|000003a0| 62 75 73 20 69 6e 74 65 | 72 66 61 63 65 2e 0d a5 |bus inte|rface...|
|000003b0| 09 56 65 6e 64 6f 72 2d | 6e 65 75 74 72 61 6c 3a |.Vendor-|neutral:|
|000003c0| 20 74 68 65 20 64 72 69 | 76 65 72 20 61 6e 64 20 | the dri|ver and |
|000003d0| 69 74 73 20 66 72 61 6d | 65 77 6f 72 6b 20 6d 61 |its fram|ework ma|
|000003e0| 79 20 62 65 20 63 6f 6d | 70 69 6c 65 64 20 75 6e |y be com|piled un|
|000003f0| 64 65 72 0d 4d 65 74 72 | 6f 57 65 72 6b 73 20 43 |der.Metr|oWerks C|
|00000400| 6f 64 65 20 57 61 72 72 | 69 6f 72 20 31 2e 32 20 |ode Warr|ior 1.2 |
|00000410| 6f 72 20 4d 50 57 20 33 | 2e 33 2e 20 41 6e 20 41 |or MPW 3|.3. An A|
|00000420| 70 70 6c 65 53 63 72 69 | 70 74 20 66 61 63 69 6c |ppleScri|pt facil|
|00000430| 69 74 61 74 65 73 20 62 | 75 69 6c 64 69 6e 67 0d |itates b|uilding.|
|00000440| 6d 75 6c 74 69 70 6c 65 | 20 69 6e 73 74 61 6e 63 |multiple| instanc|
|00000450| 65 73 2e 20 5b 54 68 65 | 20 41 70 70 6c 65 53 63 |es. [The| AppleSc|
|00000460| 72 69 70 74 20 69 73 20 | 6e 6f 74 20 69 6d 70 6c |ript is |not impl|
|00000470| 65 6d 65 6e 74 65 64 20 | 79 65 74 5d 2e 20 54 68 |emented |yet]. Th|
|00000480| 65 20 66 72 61 6d 65 77 | 6f 72 6b 0d 72 75 6e 73 |e framew|ork.runs|
|00000490| 20 75 6e 64 65 72 20 4d | 65 74 72 6f 57 65 72 6b | under M|etroWerk|
|000004a0| 73 20 61 6e 64 20 4d 50 | 57 2e 20 49 74 20 68 61 |s and MP|W. It ha|
|000004b0| 73 20 6e 6f 74 20 62 65 | 65 6e 20 62 75 69 6c 74 |s not be|en built|
|000004c0| 20 6f 72 20 74 65 73 74 | 65 64 20 75 6e 64 65 72 | or test|ed under|
|000004d0| 20 54 68 69 6e 6b 20 43 | 2c 0d 61 6c 74 68 6f 75 | Think C|,.althou|
|000004e0| 67 68 20 74 68 69 73 20 | 73 68 6f 75 6c 64 20 6e |gh this |should n|
|000004f0| 6f 74 20 70 72 65 73 65 | 6e 74 20 64 69 66 66 69 |ot prese|nt diffi|
|00000500| 63 75 6c 74 69 65 73 2e | 20 54 68 65 20 74 65 73 |culties.| The tes|
|00000510| 74 20 70 72 6f 67 72 61 | 6d 20 68 61 73 20 6f 6e |t progra|m has on|
|00000520| 6c 79 20 62 65 65 6e 0d | 63 6f 6d 70 69 6c 65 64 |ly been.|compiled|
|00000530| 20 62 79 20 4d 65 74 72 | 6f 57 65 72 6b 73 2e 0d | by Metr|oWerks..|
|00000540| 0d 47 6f 61 6c 73 0d 7e | 7e 7e 7e 7e 0d a5 09 41 |.Goals.~|~~~~...A|
|00000550| 20 77 6f 72 6b 69 6e 67 | 20 64 65 76 69 63 65 20 | working| device |
|00000560| 64 72 69 76 65 72 20 73 | 61 6d 70 6c 65 20 66 6f |driver s|ample fo|
|00000570| 72 20 74 68 65 20 4e 65 | 77 20 44 65 76 69 63 65 |r the Ne|w Device|
|00000580| 20 4d 61 6e 61 67 65 72 | 20 61 72 63 68 69 74 65 | Manager| archite|
|00000590| 63 74 75 72 65 20 74 68 | 61 74 0d a5 09 69 6c 6c |cture th|at...ill|
|000005a0| 75 73 74 72 61 74 65 73 | 20 61 73 79 6e 63 68 72 |ustrates| asynchr|
|000005b0| 6f 6e 6f 75 73 20 62 65 | 68 61 76 69 6f 72 20 61 |onous be|havior a|
|000005c0| 6e 64 20 6d 61 6e 79 20 | 6f 66 20 74 68 65 20 6e |nd many |of the n|
|000005d0| 65 77 20 6d 61 6e 61 67 | 65 72 73 2c 20 61 6e 64 |ew manag|ers, and|
|000005e0| 0d a5 09 66 6f 6c 6c 6f | 77 73 20 74 68 65 20 64 |...follo|ws the d|
|000005f0| 65 76 69 63 65 20 64 72 | 69 76 65 72 20 6d 6f 64 |evice dr|iver mod|
|00000600| 65 6c 20 74 68 61 74 20 | 77 69 6c 6c 20 62 65 20 |el that |will be |
|00000610| 75 73 65 64 20 69 6e 20 | 66 75 74 75 72 65 20 4d |used in |future M|
|00000620| 61 63 69 6e 74 6f 73 68 | 20 73 79 73 74 65 6d 73 |acintosh| systems|
|00000630| 2e 0d 0d 4e 6f 6e 2d 47 | 6f 61 6c 73 0d 7e 7e 7e |...Non-G|oals.~~~|
|00000640| 7e 7e 7e 7e 7e 0d a5 09 | 43 6f 6e 63 75 72 72 65 |~~~~~...|Concurre|
|00000650| 6e 63 65 3a 20 28 69 2e | 65 2e 20 63 61 70 61 62 |nce: (i.|e. capab|
|00000660| 6c 65 20 6f 66 20 70 72 | 6f 63 65 73 73 69 6e 67 |le of pr|ocessing|
|00000670| 20 6d 6f 72 65 20 74 68 | 61 6e 20 6f 6e 65 20 73 | more th|an one s|
|00000680| 69 6d 75 6c 74 61 6e 65 | 6f 75 73 0d 6f 70 65 72 |imultane|ous.oper|
|00000690| 61 74 69 6f 6e 73 29 2e | 20 54 68 69 73 20 77 6f |ations).| This wo|
|000006a0| 75 6c 64 20 72 65 71 75 | 69 72 65 20 61 20 67 72 |uld requ|ire a gr|
|000006b0| 65 61 74 20 64 65 61 6c | 20 6f 66 20 4e 43 52 35 |eat deal| of NCR5|
|000006c0| 33 43 38 32 35 2d 73 70 | 65 63 69 66 69 63 20 70 |3C825-sp|ecific p|
|000006d0| 72 6f 67 72 61 6d 6d 69 | 6e 67 2e 0d a5 09 46 75 |rogrammi|ng....Fu|
|000006e0| 6c 6c 2d 73 63 61 6c 65 | 3a 20 74 68 69 73 20 64 |ll-scale|: this d|
|000006f0| 72 69 76 65 72 20 69 6c | 6c 75 73 74 72 61 74 65 |river il|lustrate|
|00000700| 73 20 74 68 65 20 6e 65 | 77 20 64 72 69 76 65 72 |s the ne|w driver|
|00000710| 20 61 72 63 68 69 74 65 | 63 74 75 72 65 3a 20 69 | archite|cture: i|
|00000720| 74 20 64 6f 65 73 0d 6e | 6f 74 20 69 6c 6c 75 73 |t does.n|ot illus|
|00000730| 74 72 61 74 65 20 61 6c | 6c 20 63 61 70 61 62 69 |trate al|l capabi|
|00000740| 6c 69 74 69 65 73 20 6f | 66 20 74 68 65 20 6e 65 |lities o|f the ne|
|00000750| 77 20 6d 6f 64 65 6c 2e | 0d a5 09 54 68 69 73 20 |w model.|...This |
|00000760| 69 73 20 6e 6f 74 20 61 | 20 53 43 53 49 20 73 61 |is not a| SCSI sa|
|00000770| 6d 70 6c 65 2e 54 68 65 | 20 62 6f 61 72 64 20 75 |mple.The| board u|
|00000780| 73 65 64 20 77 61 73 20 | 63 68 6f 73 65 6e 20 61 |sed was |chosen a|
|00000790| 73 20 61 73 20 61 20 72 | 65 61 64 69 6c 79 2d 61 |s as a r|eadily-a|
|000007a0| 76 61 69 6c 61 62 6c 65 | 0d 68 61 72 64 77 61 72 |vailable|.hardwar|
|000007b0| 65 20 73 61 6d 70 6c 65 | 2e 20 54 68 69 73 20 64 |e sample|. This d|
|000007c0| 72 69 76 65 72 20 73 68 | 6f 75 6c 64 20 6e 6f 74 |river sh|ould not|
|000007d0| 20 62 65 20 75 73 65 64 | 20 61 73 20 61 20 62 61 | be used| as a ba|
|000007e0| 73 69 73 20 66 6f 72 20 | 61 20 53 43 53 49 20 64 |sis for |a SCSI d|
|000007f0| 65 76 69 63 65 0d 64 72 | 69 76 65 72 20 28 6f 72 |evice.dr|iver (or|
|00000800| 20 53 49 4d 29 2e 20 49 | 6e 20 70 61 72 74 69 63 | SIM). I|n partic|
|00000810| 75 6c 61 72 2c 20 41 70 | 70 6c 65 20 72 65 63 6f |ular, Ap|ple reco|
|00000820| 6d 6d 65 6e 64 73 20 74 | 68 61 74 20 53 43 53 49 |mmends t|hat SCSI|
|00000830| 20 64 65 76 69 63 65 73 | 20 62 65 20 73 75 70 70 | devices| be supp|
|00000840| 6f 72 74 65 64 0d 62 79 | 20 64 65 76 69 63 65 20 |orted.by| device |
|00000850| 64 72 69 76 65 72 73 20 | 63 6f 6d 6d 75 6e 69 63 |drivers |communic|
|00000860| 61 74 69 6e 67 20 74 68 | 72 6f 75 67 68 20 74 68 |ating th|rough th|
|00000870| 65 20 53 43 53 49 20 4d | 61 6e 61 67 65 72 2c 20 |e SCSI M|anager, |
|00000880| 61 6e 64 20 74 68 61 74 | 20 53 43 53 49 20 62 75 |and that| SCSI bu|
|00000890| 73 0d 61 64 61 70 74 6f | 72 73 20 62 65 20 73 75 |s.adapto|rs be su|
|000008a0| 70 70 6f 72 74 65 64 20 | 62 79 20 53 49 4d 53 20 |pported |by SIMS |
|000008b0| 63 6f 6e 74 72 6f 6c 6c | 65 64 20 62 79 20 3d 20 |controll|ed by = |
|000008c0| 53 43 53 49 20 4d 61 6e | 61 67 65 72 20 34 2e 33 |SCSI Man|ager 4.3|
|000008d0| 2e 0d 0d 54 68 65 20 53 | 61 6d 70 6c 65 20 44 72 |...The S|ample Dr|
|000008e0| 69 76 65 72 0d 54 68 65 | 20 64 72 69 76 65 72 20 |iver.The| driver |
|000008f0| 61 6c 6c 6f 77 73 20 61 | 6e 20 61 70 70 6c 69 63 |allows a|n applic|
|00000900| 61 74 69 6f 6e 20 70 72 | 6f 67 72 61 6d 20 74 6f |ation pr|ogram to|
|00000910| 20 69 73 73 75 65 20 53 | 43 53 49 20 63 6f 6d 6d | issue S|CSI comm|
|00000920| 61 6e 64 73 20 64 69 72 | 65 63 74 6c 79 20 74 6f |ands dir|ectly to|
|00000930| 20 74 68 65 20 4e 43 52 | 0d 64 65 76 69 63 65 2e | the NCR|.device.|
|00000940| 20 49 74 20 64 6f 65 73 | 20 6e 6f 74 20 73 75 70 | It does| not sup|
|00000950| 70 6f 72 74 20 72 65 61 | 64 2f 77 72 69 74 65 20 |port rea|d/write |
|00000960| 6f 72 20 d2 64 72 69 76 | 65 d3 20 70 72 6f 67 72 |or .driv|e. progr|
|00000970| 61 6d 6d 69 6e 67 20 28 | 69 2e 65 2e 20 69 74 20 |amming (|i.e. it |
|00000980| 64 6f 65 73 20 6e 6f 74 | 0d 61 6c 6c 6f 77 20 79 |does not|.allow y|
|00000990| 6f 75 20 74 6f 20 6d 6f | 75 6e 74 20 53 43 53 49 |ou to mo|unt SCSI|
|000009a0| 20 64 69 73 6b 73 29 2c | 20 62 75 74 20 72 61 74 | disks),| but rat|
|000009b0| 68 65 72 20 72 65 71 75 | 69 72 65 73 20 79 6f 75 |her requ|ires you|
|000009c0| 20 74 6f 20 69 73 73 75 | 65 20 63 6f 6d 6d 61 6e | to issu|e comman|
|000009d0| 64 73 0d 64 69 72 65 63 | 74 6c 79 2e 20 49 6e 20 |ds.direc|tly. In |
|000009e0| 74 68 69 73 20 72 65 67 | 61 72 64 2c 20 69 74 20 |this reg|ard, it |
|000009f0| 66 75 6e 63 74 69 6f 6e | 73 20 73 6f 6d 65 77 68 |function|s somewh|
|00000a00| 61 74 20 6c 69 6b 65 20 | 74 68 65 20 53 43 53 49 |at like |the SCSI|
|00000a10| 20 4d 61 6e 61 67 65 72 | 2e 20 49 6e 0d 70 61 72 | Manager|. In.par|
|00000a20| 74 69 63 75 6c 61 72 2c | 20 69 74 0d a5 20 49 6c |ticular,| it.. Il|
|00000a30| 6c 75 73 74 72 61 74 65 | 73 20 50 72 69 6d 61 72 |lustrate|s Primar|
|00000a40| 79 20 49 6e 74 65 72 72 | 75 70 74 20 53 65 72 76 |y Interr|upt Serv|
|00000a50| 69 63 65 20 52 6f 75 74 | 69 6e 65 20 70 72 6f 63 |ice Rout|ine proc|
|00000a60| 65 73 73 69 6e 67 2e 0d | a5 20 49 6c 6c 75 73 74 |essing..|. Illust|
|00000a70| 72 61 74 65 73 20 61 73 | 79 6e 63 68 72 6f 6e 6f |rates as|ynchrono|
|00000a80| 75 73 20 49 2f 4f 20 70 | 72 6f 63 65 73 73 69 6e |us I/O p|rocessin|
|00000a90| 67 2e 0d a5 09 49 6c 6c | 75 73 74 72 61 74 65 73 |g....Ill|ustrates|
|00000aa0| 20 44 4d 41 2c 20 64 69 | 72 65 63 74 20 72 65 61 | DMA, di|rect rea|
|00000ab0| 64 2f 77 72 69 74 65 20 | 6f 66 20 64 65 76 69 63 |d/write |of devic|
|00000ac0| 65 20 72 65 67 69 73 74 | 65 72 73 2c 20 61 6e 64 |e regist|ers, and|
|00000ad0| 20 45 78 70 61 6e 73 69 | 6f 6e 20 42 75 73 0d 4d | Expansi|on Bus.M|
|00000ae0| 61 6e 61 67 65 72 20 70 | 72 6f 67 72 61 6d 6d 69 |anager p|rogrammi|
|00000af0| 6e 67 2e 0d a5 ca 49 6c | 6c 75 73 74 72 61 74 65 |ng....Il|lustrate|
|00000b00| 73 20 53 79 73 74 65 6d | 20 52 65 67 69 73 74 72 |s System| Registr|
|00000b10| 79 20 70 72 6f 63 65 73 | 73 69 6e 67 2e 0d 0d 4e |y proces|sing...N|
|00000b20| 65 77 20 44 65 76 69 63 | 65 20 44 72 69 76 65 72 |ew Devic|e Driver|
|00000b30| 20 41 72 63 68 69 74 65 | 63 74 75 72 65 0d 7e 7e | Archite|cture.~~|
|00000b40| 7e 7e 7e 7e 7e 7e 7e 7e | 7e 7e 7e 7e 7e 7e 7e 7e |~~~~~~~~|~~~~~~~~|
|00000b50| 7e 7e 7e 7e 7e 7e 7e 0d | 54 68 65 20 44 65 76 69 |~~~~~~~.|The Devi|
|00000b60| 63 65 20 4d 61 6e 61 67 | 65 72 20 77 69 6c 6c 20 |ce Manag|er will |
|00000b70| 62 65 20 72 65 70 6c 61 | 63 65 64 20 62 65 67 69 |be repla|ced begi|
|00000b80| 6e 6e 69 6e 67 20 77 69 | 74 68 20 74 68 65 20 50 |nning wi|th the P|
|00000b90| 43 49 20 6d 61 63 68 69 | 6e 65 73 2e 20 54 68 69 |CI machi|nes. Thi|
|00000ba0| 73 20 6e 65 77 0d d2 6e | 61 74 69 76 65 20 64 72 |s new..n|ative dr|
|00000bb0| 69 76 65 72 d3 20 61 72 | 63 68 69 74 65 63 74 75 |iver. ar|chitectu|
|00000bc0| 72 65 20 77 69 6c 6c 20 | 62 65 20 75 73 65 64 20 |re will |be used |
|00000bd0| 66 6f 72 20 61 6c 6c 20 | 6e 65 77 20 6d 61 63 68 |for all |new mach|
|00000be0| 69 6e 65 73 2e 20 57 68 | 69 6c 65 20 65 78 69 73 |ines. Wh|ile exis|
|00000bf0| 74 69 6e 67 0d 64 72 69 | 76 65 72 73 20 77 69 6c |ting.dri|vers wil|
|00000c00| 6c 20 73 74 69 6c 6c 20 | 77 6f 72 6b 20 63 6f 72 |l still |work cor|
|00000c10| 72 65 63 74 6c 79 2c 20 | 74 68 65 79 20 63 61 6e |rectly, |they can|
|00000c20| 6e 6f 74 20 74 61 6b 65 | 20 61 64 76 61 6e 74 61 |not take| advanta|
|00000c30| 67 65 20 6f 66 20 50 6f | 77 65 72 20 4d 61 63 69 |ge of Po|wer Maci|
|00000c40| 6e 74 6f 73 68 0d 6e 61 | 74 69 76 65 20 63 6f 64 |ntosh.na|tive cod|
|00000c50| 65 2e 0d 53 65 70 61 72 | 61 74 69 6f 6e 20 6f 66 |e..Separ|ation of|
|00000c60| 20 66 75 6e 63 74 69 6f | 6e 20 69 73 20 63 65 6e | functio|n is cen|
|00000c70| 74 72 61 6c 20 74 6f 20 | 74 68 65 20 6e 65 77 20 |tral to |the new |
|00000c80| 61 72 63 68 69 74 65 63 | 74 75 72 65 3a 20 64 72 |architec|ture: dr|
|00000c90| 69 76 65 72 73 20 77 69 | 6c 6c 20 6e 6f 74 20 75 |ivers wi|ll not u|
|00000ca0| 73 65 0d 4d 61 63 69 6e | 74 6f 73 68 20 4f 53 2e |se.Macin|tosh OS.|
|00000cb0| 20 73 65 72 76 69 63 65 | 73 2c 20 61 6e 64 20 61 | service|s, and a|
|00000cc0| 70 70 6c 69 63 61 74 69 | 6f 6e 73 20 61 6e 64 20 |pplicati|ons and |
|00000cd0| 6e 6f 6e 2d 64 72 69 76 | 65 72 20 63 6f 64 65 20 |non-driv|er code |
|00000ce0| 6d 6f 64 75 6c 65 73 20 | 77 69 6c 6c 20 6e 6f 74 |modules |will not|
|00000cf0| 0d 63 61 6c 6c 20 74 68 | 65 20 64 72 69 76 65 72 |.call th|e driver|
|00000d00| 20 73 6f 66 74 77 61 72 | 65 20 6c 69 62 72 61 72 | softwar|e librar|
|00000d10| 79 2e 20 54 68 69 73 20 | 77 69 6c 6c 20 6d 65 61 |y. This |will mea|
|00000d20| 6e 20 73 69 67 6e 69 66 | 69 63 61 6e 74 20 63 68 |n signif|icant ch|
|00000d30| 61 6e 67 65 73 20 66 6f | 72 20 64 72 69 76 65 72 |anges fo|r driver|
|00000d40| 0d 77 72 69 74 65 72 73 | 3a 20 70 61 72 61 6d 65 |.writers|: parame|
|00000d50| 74 65 72 73 20 63 61 6e | 6e 6f 74 20 62 65 20 72 |ters can|not be r|
|00000d60| 65 61 64 20 66 72 6f 6d | 20 72 65 73 6f 75 72 63 |ead from| resourc|
|00000d70| 65 20 66 69 6c 65 73 2c | 20 66 6f 72 20 65 78 61 |e files,| for exa|
|00000d80| 6d 70 6c 65 2e 0d 0d 54 | 68 65 20 54 68 72 65 65 |mple...T|he Three|
|00000d90| 20 41 73 70 65 63 74 73 | 20 6f 66 20 61 20 44 65 | Aspects| of a De|
|00000da0| 76 69 63 65 20 44 72 69 | 76 65 72 0d 7e 7e 7e 7e |vice Dri|ver.~~~~|
|00000db0| 7e 7e 7e 7e 7e 7e 7e 7e | 7e 7e 7e 7e 7e 7e 7e 7e |~~~~~~~~|~~~~~~~~|
|00000dc0| 7e 7e 7e 7e 7e 7e 7e 7e | 7e 0d 41 6c 6c 20 64 65 |~~~~~~~~|~.All de|
|00000dd0| 76 69 63 65 20 64 72 69 | 76 65 72 73 20 63 6f 6e |vice dri|vers con|
|00000de0| 74 61 69 6e 20 74 68 72 | 65 65 20 73 6f 6d 65 77 |tain thr|ee somew|
|00000df0| 68 61 74 20 69 6e 64 65 | 70 65 6e 64 65 6e 74 20 |hat inde|pendent |
|00000e00| 63 6f 6d 70 6f 6e 65 6e | 74 73 3a 0d 09 31 2e 09 |componen|ts:..1..|
|00000e10| 54 68 65 20 6c 6f 77 2d | 6c 65 76 65 6c 20 62 75 |The low-|level bu|
|00000e20| 73 20 69 6e 74 65 72 66 | 61 63 65 20 6f 72 20 d2 |s interf|ace or .|
|00000e30| 68 61 72 64 77 61 72 65 | 20 61 62 73 74 72 61 63 |hardware| abstrac|
|00000e40| 74 69 6f 6e 20 6c 61 79 | 65 72 d3 20 74 68 61 74 |tion lay|er. that|
|00000e50| 20 72 65 61 64 73 0d 09 | 20 20 20 20 61 6e 64 20 | reads..| and |
|00000e60| 6d 6f 64 69 66 69 65 73 | 20 69 6e 66 6f 72 6d 61 |modifies| informa|
|00000e70| 74 69 6f 6e 20 69 6e 20 | 74 68 65 20 65 78 74 65 |tion in |the exte|
|00000e80| 72 6e 61 6c 20 4e 75 42 | 75 73 20 6f 72 20 50 43 |rnal NuB|us or PC|
|00000e90| 49 20 64 65 76 69 63 65 | 2e 0d 09 32 2e 09 41 20 |I device|...2..A |
|00000ea0| 6d 69 64 2d 6c 65 76 65 | 6c 20 63 6f 6d 70 6f 6e |mid-leve|l compon|
|00000eb0| 65 6e 74 20 74 68 61 74 | 20 68 61 73 20 74 68 65 |ent that| has the|
|00000ec0| 20 64 65 76 69 63 65 20 | 64 72 69 76 65 72 d5 73 | device |driver.s|
|00000ed0| 20 74 61 73 6b 2d 73 70 | 65 63 69 66 69 63 0d 09 | task-sp|ecific..|
|00000ee0| 20 20 20 20 69 6e 74 65 | 6c 6c 69 67 65 6e 63 65 | inte|lligence|
|00000ef0| 2e 20 46 6f 72 20 65 78 | 61 6d 70 6c 65 2c 20 74 |. For ex|ample, t|
|00000f00| 68 69 73 20 6d 69 67 68 | 74 20 63 6f 6e 74 61 69 |his migh|t contai|
|00000f10| 6e 20 64 69 73 6b 20 64 | 72 69 76 65 72 20 62 75 |n disk d|river bu|
|00000f20| 66 66 65 72 69 6e 67 0d | 09 20 20 20 20 61 6c 67 |ffering.|. alg|
|00000f30| 6f 72 69 74 68 6d 73 2e | 20 54 68 69 73 20 70 61 |orithms.| This pa|
|00000f40| 72 74 20 69 73 20 75 6e | 69 71 75 65 20 74 6f 20 |rt is un|ique to |
|00000f50| 65 61 63 68 20 64 72 69 | 76 65 72 2e 0d 09 33 2e |each dri|ver...3.|
|00000f60| 09 41 20 68 69 67 68 2d | 6c 65 76 65 6c 20 63 6f |.A high-|level co|
|00000f70| 6d 70 6f 6e 65 6e 74 20 | 74 68 61 74 20 63 6f 6e |mponent |that con|
|00000f80| 6e 65 63 74 73 20 74 68 | 65 20 44 65 76 69 63 65 |nects th|e Device|
|00000f90| 20 44 72 69 76 65 72 20 | 74 6f 20 74 68 65 20 4d | Driver |to the M|
|00000fa0| 61 63 69 6e 74 6f 73 68 | 0d 09 09 6f 70 65 72 61 |acintosh|...opera|
|00000fb0| 74 69 6e 67 20 73 79 73 | 74 65 6d 2e 0d 43 75 72 |ting sys|tem..Cur|
|00000fc0| 72 65 6e 74 6c 79 2c 20 | 4d 61 63 69 6e 74 6f 73 |rently, |Macintos|
|00000fd0| 68 20 64 65 76 69 63 65 | 20 64 72 69 76 65 72 73 |h device| drivers|
|00000fe0| 20 6d 69 78 20 61 6c 6c | 20 74 68 72 65 65 20 d2 | mix all| three .|
|00000ff0| 6c 65 76 65 6c 73 d3 20 | 74 6f 67 65 74 68 65 72 |levels. |together|
|00001000| 2c 20 6d 61 6b 69 6e 67 | 0d 74 68 65 6d 20 68 61 |, making|.them ha|
|00001010| 72 64 20 74 6f 20 77 72 | 69 74 65 20 61 6e 64 20 |rd to wr|ite and |
|00001020| 68 61 72 64 65 72 20 74 | 6f 20 6d 61 69 6e 74 61 |harder t|o mainta|
|00001030| 69 6e 2e 20 54 68 65 20 | 6e 65 77 20 64 72 69 76 |in. The |new driv|
|00001040| 65 72 20 61 72 63 68 69 | 74 65 63 74 75 72 65 20 |er archi|tecture |
|00001050| 6d 61 6b 65 73 20 69 74 | 0d 65 61 73 69 65 72 20 |makes it|.easier |
|00001060| 74 6f 20 61 62 73 74 72 | 61 63 74 20 74 68 65 73 |to abstr|act thes|
|00001070| 65 20 6c 61 79 65 72 73 | 2e 20 49 6e 20 70 61 72 |e layers|. In par|
|00001080| 74 69 63 75 6c 61 72 2c | 20 74 68 65 20 6f 70 65 |ticular,| the ope|
|00001090| 72 61 74 69 6e 67 20 73 | 79 73 74 65 6d 20 6e 6f |rating s|ystem no|
|000010a0| 77 20 68 61 6e 64 6c 65 | 73 0d 74 68 65 20 6d 65 |w handle|s.the me|
|000010b0| 73 73 79 20 64 65 74 61 | 69 6c 73 20 6f 66 20 74 |ssy deta|ils of t|
|000010c0| 68 65 20 68 69 67 68 2d | 6c 65 76 65 6c 20 63 6f |he high-|level co|
|000010d0| 6d 70 6f 6e 65 6e 74 20 | 77 69 74 68 69 6e 20 69 |mponent |within i|
|000010e0| 74 73 65 6c 66 2c 20 70 | 72 65 73 65 6e 74 69 6e |tself, p|resentin|
|000010f0| 67 20 74 68 65 0d 64 65 | 76 69 63 65 20 64 72 69 |g the.de|vice dri|
|00001100| 76 65 72 20 77 72 69 74 | 65 72 20 77 69 74 68 20 |ver writ|er with |
|00001110| 61 20 73 6d 61 6c 6c 20 | 6c 69 62 72 61 72 79 20 |a small |library |
|00001120| 6f 66 20 69 6e 74 65 72 | 66 61 63 65 20 66 75 6e |of inter|face fun|
|00001130| 63 74 69 6f 6e 73 2e 0d | 41 6e 6f 74 68 65 72 20 |ctions..|Another |
|00001140| 70 72 6f 62 6c 65 6d 20 | 77 69 74 68 20 74 68 65 |problem |with the|
|00001150| 20 63 75 72 72 65 6e 74 | 20 64 65 76 69 63 65 20 | current| device |
|00001160| 64 72 69 76 65 72 20 61 | 72 63 68 69 74 65 63 74 |driver a|rchitect|
|00001170| 75 72 65 20 69 73 20 74 | 68 65 20 72 65 6c 69 61 |ure is t|he relia|
|00001180| 6e 63 65 20 6f 6e 0d 73 | 70 65 63 69 66 69 63 20 |nce on.s|pecific |
|00001190| 66 65 61 74 75 72 65 73 | 20 61 6e 64 20 71 75 69 |features| and qui|
|000011a0| 72 6b 73 20 6f 66 20 74 | 68 65 20 36 38 30 30 30 |rks of t|he 68000|
|000011b0| 20 68 61 72 64 77 61 72 | 65 20 61 6e 64 20 70 72 | hardwar|e and pr|
|000011c0| 6f 67 72 61 6d 6d 69 6e | 67 20 61 72 63 68 69 74 |ogrammin|g archit|
|000011d0| 65 63 74 75 72 65 2e 0d | 46 6f 72 20 65 78 61 6d |ecture..|For exam|
|000011e0| 70 6c 65 2c 20 63 72 69 | 74 69 63 61 6c 20 73 65 |ple, cri|tical se|
|000011f0| 63 74 69 6f 6e 73 20 61 | 72 65 20 69 6d 70 6c 65 |ctions a|re imple|
|00001200| 6d 65 6e 74 65 64 20 62 | 79 20 62 6c 6f 63 6b 69 |mented b|y blocki|
|00001210| 6e 67 20 68 61 72 64 77 | 61 72 65 20 69 6e 74 65 |ng hardw|are inte|
|00001220| 72 72 75 70 74 73 0d 61 | 6e 64 20 64 72 69 76 65 |rrupts.a|nd drive|
|00001230| 72 73 20 63 6f 6d 70 6c | 65 74 65 20 49 2f 4f 20 |rs compl|ete I/O |
|00001240| 72 65 71 75 65 73 74 73 | 20 62 79 20 73 74 6f 72 |requests| by stor|
|00001250| 69 6e 67 20 73 70 65 63 | 69 66 69 63 20 76 61 6c |ing spec|ific val|
|00001260| 75 65 73 20 69 6e 74 6f | 20 68 61 72 64 77 61 72 |ues into| hardwar|
|00001270| 65 0d 72 65 67 69 73 74 | 65 72 73 20 61 6e 64 20 |e.regist|ers and |
|00001280| 73 65 74 74 69 6e 67 20 | 74 68 65 20 36 38 30 30 |setting |the 6800|
|00001290| 30 20 63 6f 6e 64 69 74 | 69 6f 6e 20 63 6f 64 65 |0 condit|ion code|
|000012a0| 73 2e 20 44 72 69 76 65 | 72 73 20 61 6c 73 6f 20 |s. Drive|rs also |
|000012b0| 6e 65 65 64 20 61 63 63 | 65 73 73 20 74 6f 0d 36 |need acc|ess to.6|
|000012c0| 38 30 30 30 20 72 65 67 | 69 73 74 65 72 73 20 61 |8000 reg|isters a|
|000012d0| 6e 64 20 73 79 73 74 65 | 6d 20 6c 6f 77 2d 6d 65 |nd syste|m low-me|
|000012e0| 6d 6f 72 79 20 67 6c 6f | 62 61 6c 20 76 61 6c 75 |mory glo|bal valu|
|000012f0| 65 73 2e 20 54 68 65 20 | 6e 65 77 20 61 72 63 68 |es. The |new arch|
|00001300| 69 74 65 63 74 75 72 65 | 20 77 61 73 0d 64 65 73 |itecture| was.des|
|00001310| 69 67 6e 65 64 20 74 6f | 20 66 61 63 69 6c 69 74 |igned to| facilit|
|00001320| 61 74 65 20 68 69 67 68 | 2d 6c 65 76 65 6c 20 6c |ate high|-level l|
|00001330| 61 6e 67 75 61 67 65 20 | 69 6d 70 6c 65 6d 65 6e |anguage |implemen|
|00001340| 74 61 74 69 6f 6e 2e 20 | 49 74 20 70 72 6f 76 69 |tation. |It provi|
|00001350| 64 65 73 20 61 0d 70 72 | 6f 67 72 61 6d 6d 69 6e |des a.pr|ogrammin|
|00001360| 67 20 69 6e 74 65 72 66 | 61 63 65 20 74 68 61 74 |g interf|ace that|
|00001370| 20 69 73 20 73 70 65 63 | 69 66 69 63 20 74 6f 20 | is spec|ific to |
|00001380| 64 65 76 69 63 65 20 64 | 72 69 76 65 72 73 20 61 |device d|rivers a|
|00001390| 6e 64 20 69 73 6f 6c 61 | 74 65 73 20 74 68 65 6d |nd isola|tes them|
|000013a0| 20 66 72 6f 6d 0d 74 68 | 65 20 4d 61 63 69 6e 74 | from.th|e Macint|
|000013b0| 6f 73 68 20 54 6f 6f 6c | 62 6f 78 20 28 69 2e 65 |osh Tool|box (i.e|
|000013c0| 2e 20 64 65 76 69 63 65 | 20 64 72 69 76 65 72 73 |. device| drivers|
|000013d0| 20 6d 61 79 20 6e 6f 20 | 6c 6f 6e 67 65 72 20 64 | may no |longer d|
|000013e0| 69 73 70 6c 61 79 20 64 | 69 61 6c 6f 67 73 2e 29 |isplay d|ialogs.)|
|000013f0| 0d 0d 43 6f 6e 76 65 72 | 74 69 6e 67 20 45 78 69 |..Conver|ting Exi|
|00001400| 73 74 69 6e 67 20 44 65 | 76 69 63 65 20 44 72 69 |sting De|vice Dri|
|00001410| 76 65 72 73 0d 7e 7e 7e | 7e 7e 7e 7e 7e 7e 7e 7e |vers.~~~|~~~~~~~~|
|00001420| 7e 7e 7e 7e 7e 7e 7e 7e | 7e 7e 7e 7e 7e 7e 7e 7e |~~~~~~~~|~~~~~~~~|
|00001430| 0d 46 6f 72 20 65 78 61 | 6d 70 6c 65 2c 20 79 6f |.For exa|mple, yo|
|00001440| 75 20 6d 61 79 20 68 61 | 76 65 20 64 65 76 65 6c |u may ha|ve devel|
|00001450| 6f 70 65 64 20 61 20 64 | 6f 63 75 6d 65 6e 74 20 |oped a d|ocument |
|00001460| 73 63 61 6e 6e 65 72 20 | 77 69 74 68 20 61 6e 20 |scanner |with an |
|00001470| 6f 70 74 69 63 61 6c 20 | 63 68 61 72 61 63 74 65 |optical |characte|
|00001480| 72 0d 72 65 63 6f 67 6e | 69 74 69 6f 6e 20 66 61 |r.recogn|ition fa|
|00001490| 63 69 6c 69 74 79 2e 20 | 54 68 65 20 64 6f 63 75 |cility. |The docu|
|000014a0| 6d 65 6e 74 20 73 63 61 | 6e 6e 65 72 20 69 73 20 |ment sca|nner is |
|000014b0| 63 6f 6e 74 72 6f 6c 6c | 65 64 20 62 79 20 61 20 |controll|ed by a |
|000014c0| 4e 75 42 75 73 20 62 6f | 61 72 64 20 74 68 61 74 |NuBus bo|ard that|
|000014d0| 0d 79 6f 75 20 64 65 73 | 69 67 6e 65 64 2c 20 61 |.you des|igned, a|
|000014e0| 6e 64 20 79 6f 75 20 61 | 72 65 20 62 75 69 6c 64 |nd you a|re build|
|000014f0| 69 6e 67 20 61 20 50 43 | 49 20 62 6f 61 72 64 20 |ing a PC|I board |
|00001500| 74 6f 20 73 75 70 70 6f | 72 74 20 74 68 65 20 73 |to suppo|rt the s|
|00001510| 63 61 6e 6e 65 72 20 6f | 6e 20 66 75 74 75 72 65 |canner o|n future|
|00001520| 0d 4d 61 63 69 6e 74 6f | 73 68 20 6d 61 63 68 69 |.Macinto|sh machi|
|00001530| 6e 65 73 2e 20 49 6e 20 | 74 68 69 73 20 6d 6f 64 |nes. In |this mod|
|00001540| 65 6c 2c 20 74 68 65 20 | 74 68 72 65 65 20 61 73 |el, the |three as|
|00001550| 70 65 63 74 73 20 6f 66 | 20 74 68 65 20 64 72 69 |pects of| the dri|
|00001560| 76 65 72 20 77 6f 75 6c | 64 20 62 65 20 61 73 0d |ver woul|d be as.|
|00001570| 66 6f 6c 6c 6f 77 73 3a | 0d 09 31 2e 09 54 68 65 |follows:|..1..The|
|00001580| 20 6c 6f 77 2d 6c 65 76 | 65 6c 20 62 75 73 20 69 | low-lev|el bus i|
|00001590| 6e 74 65 72 66 61 63 65 | 20 6d 61 6e 69 70 75 6c |nterface| manipul|
|000015a0| 61 74 65 73 20 72 65 67 | 69 73 74 65 72 73 20 6f |ates reg|isters o|
|000015b0| 6e 20 74 68 65 20 4e 75 | 42 75 73 2e 20 46 6f 72 |n the Nu|Bus. For|
|000015c0| 20 74 68 65 0d 09 09 50 | 43 49 20 73 79 73 74 65 | the...P|CI syste|
|000015d0| 6d 2c 20 74 68 69 73 20 | 6c 61 79 65 72 20 6d 75 |m, this |layer mu|
|000015e0| 73 74 20 62 65 20 72 65 | 70 6c 61 63 65 64 20 77 |st be re|placed w|
|000015f0| 69 74 68 20 63 6f 64 65 | 20 74 68 61 74 20 6d 61 |ith code| that ma|
|00001600| 6e 69 70 75 6c 61 74 65 | 73 20 50 43 49 0d 09 09 |nipulate|s PCI...|
|00001610| 72 65 67 69 73 74 65 72 | 73 2e 20 41 6c 73 6f 2c |register|s. Also,|
|00001620| 20 61 20 6d 6f 64 65 72 | 61 74 65 20 61 6d 6f 75 | a moder|ate amou|
|00001630| 6e 74 20 6f 66 20 63 6f | 64 65 20 77 69 6c 6c 20 |nt of co|de will |
|00001640| 68 61 76 65 20 74 6f 20 | 62 65 20 77 72 69 74 74 |have to |be writt|
|00001650| 65 6e 20 74 6f 0d 09 09 | 73 75 70 70 6f 72 74 20 |en to...|support |
|00001660| 74 68 65 20 50 43 49 20 | 44 65 76 69 63 65 20 52 |the PCI |Device R|
|00001670| 65 67 69 73 74 72 79 2e | 0d 09 32 2e 09 54 68 65 |egistry.|..2..The|
|00001680| 20 6d 69 64 2d 6c 65 76 | 65 6c 20 63 6f 6d 70 6f | mid-lev|el compo|
|00001690| 6e 65 6e 74 20 69 6e 20 | 74 68 69 73 20 65 78 61 |nent in |this exa|
|000016a0| 6d 70 6c 65 20 77 6f 75 | 6c 64 20 69 6e 63 6c 75 |mple wou|ld inclu|
|000016b0| 64 65 20 73 63 61 6e 6e | 65 72 20 6d 61 6e 61 67 |de scann|er manag|
|000016c0| 65 6d 65 6e 74 0d 09 09 | 61 6e 64 2c 20 69 6e 20 |ement...|and, in |
|000016d0| 70 61 72 74 69 63 75 6c | 61 72 2c 20 6f 70 74 69 |particul|ar, opti|
|000016e0| 63 61 6c 20 63 68 61 72 | 61 63 74 65 72 20 72 65 |cal char|acter re|
|000016f0| 63 6f 67 6e 69 74 69 6f | 6e 20 61 6c 67 6f 72 69 |cognitio|n algori|
|00001700| 74 68 6d 73 2e 20 54 68 | 65 73 65 0d 09 09 61 6c |thms. Th|ese...al|
|00001710| 67 6f 72 69 74 68 6d 73 | 20 63 6f 6d 70 72 69 73 |gorithms| compris|
|00001720| 65 20 74 68 65 20 69 6e | 74 65 6c 6c 69 67 65 6e |e the in|telligen|
|00001730| 63 65 20 74 68 61 74 20 | 73 65 74 73 20 79 6f 75 |ce that |sets you|
|00001740| 72 20 70 72 6f 64 75 63 | 74 20 61 70 61 72 74 20 |r produc|t apart |
|00001750| 66 72 6f 6d 0d 09 09 69 | 74 73 20 63 6f 6d 70 65 |from...i|ts compe|
|00001760| 74 69 74 69 6f 6e 2e 0d | 09 33 2e 09 54 68 65 20 |tition..|.3..The |
|00001770| 68 69 67 68 2d 6c 65 76 | 65 6c 20 63 6f 6d 70 6f |high-lev|el compo|
|00001780| 6e 65 6e 74 20 69 6e 20 | 79 6f 75 72 20 64 72 69 |nent in |your dri|
|00001790| 76 65 72 20 74 68 61 74 | 20 69 6e 74 65 72 61 63 |ver that| interac|
|000017a0| 74 73 20 77 69 74 68 20 | 74 68 65 20 44 65 76 69 |ts with |the Devi|
|000017b0| 63 65 0d 09 09 4d 61 6e | 61 67 65 72 20 63 61 6e |ce...Man|ager can|
|000017c0| 20 62 65 20 74 68 72 6f | 77 6e 20 6f 75 74 20 61 | be thro|wn out a|
|000017d0| 6e 64 20 72 65 70 6c 61 | 63 65 64 20 77 69 74 68 |nd repla|ced with|
|000017e0| 20 74 68 65 20 63 6f 6e | 73 69 64 65 72 61 62 6c | the con|siderabl|
|000017f0| 79 20 73 69 6d 70 6c 65 | 72 0d 09 09 d2 4e 65 77 |y simple|r....New|
|00001800| 20 44 72 69 76 65 72 20 | 41 72 63 68 69 74 65 63 | Driver |Architec|
|00001810| 74 75 72 65 2e d3 20 54 | 68 69 73 20 69 73 20 65 |ture.. T|his is e|
|00001820| 78 65 63 75 74 65 64 20 | 64 69 72 65 63 74 6c 79 |xecuted |directly|
|00001830| 20 6f 6e 20 50 43 49 20 | 4d 61 63 69 6e 74 6f 73 | on PCI |Macintos|
|00001840| 68 0d 09 09 73 79 73 74 | 65 6d 73 2e 20 0d 0d 54 |h...syst|ems. ..T|
|00001850| 6f 20 63 6f 6e 76 65 72 | 74 20 79 6f 75 72 20 64 |o conver|t your d|
|00001860| 72 69 76 65 72 2c 20 79 | 6f 75 20 6d 75 73 74 20 |river, y|ou must |
|00001870| 64 6f 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |do the f|ollowing|
|00001880| 3a 0d a5 09 49 73 6f 6c | 61 74 65 20 74 68 65 20 |:...Isol|ate the |
|00001890| 66 75 6e 63 74 69 6f 6e | 61 6c 20 63 6f 6d 70 6f |function|al compo|
|000018a0| 6e 65 6e 74 73 20 6f 66 | 20 79 6f 75 72 20 64 72 |nents of| your dr|
|000018b0| 69 76 65 72 2e 20 46 6f | 72 20 65 78 61 6d 70 6c |iver. Fo|r exampl|
|000018c0| 65 2c 20 79 6f 75 20 6d | 61 79 20 68 61 76 65 0d |e, you m|ay have.|
|000018d0| 09 61 6e 20 49 4e 49 54 | 2c 20 4e 6f 74 69 66 69 |.an INIT|, Notifi|
|000018e0| 63 61 74 69 6f 6e 20 4d | 61 6e 61 67 65 72 2c 20 |cation M|anager, |
|000018f0| 43 6f 6e 74 72 6f 6c 20 | 50 61 6e 65 6c 2c 20 70 |Control |Panel, p|
|00001900| 61 72 61 6d 65 74 65 72 | 20 72 65 73 6f 75 72 63 |arameter| resourc|
|00001910| 65 73 2c 20 61 6e 64 20 | 6f 74 68 65 72 0d 09 73 |es, and |other..s|
|00001920| 6f 66 74 77 61 72 65 20 | 6d 6f 64 75 6c 65 73 20 |oftware |modules |
|00001930| 74 68 61 74 20 77 69 6c | 6c 20 6e 65 65 64 20 72 |that wil|l need r|
|00001940| 65 2d 74 68 69 6e 6b 69 | 6e 67 2e 20 46 6f 72 20 |e-thinki|ng. For |
|00001950| 65 78 61 6d 70 6c 65 2c | 20 70 61 72 61 6d 65 74 |example,| paramet|
|00001960| 65 72 0d 09 72 65 73 6f | 75 72 63 65 73 20 77 69 |er..reso|urces wi|
|00001970| 6c 6c 20 62 65 20 72 65 | 70 6c 61 63 65 64 20 62 |ll be re|placed b|
|00001980| 79 20 64 61 74 61 20 73 | 74 6f 72 65 64 20 77 69 |y data s|tored wi|
|00001990| 74 68 69 6e 20 74 68 65 | 20 53 79 73 74 65 6d 20 |thin the| System |
|000019a0| 52 65 67 69 73 74 72 79 | 20 61 6e 64 0d 09 6d 61 |Registry| and..ma|
|000019b0| 6e 69 70 75 6c 61 74 65 | 64 20 62 79 20 4f 70 65 |nipulate|d by Ope|
|000019c0| 6e 20 46 69 72 6d 77 61 | 72 65 20 63 6f 6d 70 6f |n Firmwa|re compo|
|000019d0| 6e 65 6e 74 73 2e 20 44 | 72 69 76 65 72 73 20 74 |nents. D|rivers t|
|000019e0| 68 61 74 20 6e 65 65 64 | 20 65 78 74 65 6e 73 69 |hat need| extensi|
|000019f0| 76 65 0d 09 70 61 72 61 | 6d 65 74 65 72 69 7a 61 |ve..para|meteriza|
|00001a00| 74 69 6f 6e 20 73 68 6f | 75 6c 64 20 62 65 20 6c |tion sho|uld be l|
|00001a10| 6f 61 64 65 64 20 62 79 | 20 49 4e 49 54 73 20 6f |oaded by| INITs o|
|00001a20| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 73 20 74 |r applic|ations t|
|00001a30| 68 61 74 20 73 75 70 70 | 6c 79 0d 09 6e 65 63 65 |hat supp|ly..nece|
|00001a40| 73 73 61 72 79 20 64 61 | 74 61 20 74 68 72 6f 75 |ssary da|ta throu|
|00001a50| 67 68 20 70 72 69 76 61 | 74 65 20 50 42 43 6f 6e |gh priva|te PBCon|
|00001a60| 74 72 6f 6c 20 63 61 6c | 6c 73 2e 0d a5 09 52 65 |trol cal|ls....Re|
|00001a70| 77 72 69 74 65 20 79 6f | 75 72 20 64 72 69 76 65 |write yo|ur drive|
|00001a80| 72 20 69 6e 20 76 65 72 | 79 20 63 6c 65 61 6e 20 |r in ver|y clean |
|00001a90| 43 20 63 6f 64 65 2e 20 | 52 65 6d 6f 76 65 20 61 |C code. |Remove a|
|00001aa0| 6c 6c 20 36 38 30 30 30 | 20 61 73 73 65 6d 62 6c |ll 68000| assembl|
|00001ab0| 79 20 63 6f 64 65 20 61 | 6e 64 0d 09 64 72 69 76 |y code a|nd..driv|
|00001ac0| 65 72 2d 73 70 65 63 69 | 66 69 63 20 69 6e 6c 69 |er-speci|fic inli|
|00001ad0| 6e 65 20 66 75 6e 63 74 | 69 6f 6e 73 2e 0d a5 09 |ne funct|ions....|
|00001ae0| 52 65 6d 6f 76 65 20 61 | 6c 6c 20 72 65 66 65 72 |Remove a|ll refer|
|00001af0| 65 6e 63 65 73 20 74 6f | 20 74 68 65 20 64 72 69 |ences to| the dri|
|00001b00| 76 65 72 20 63 6f 6e 74 | 72 6f 6c 20 62 6c 6f 63 |ver cont|rol bloc|
|00001b10| 6b 2e 20 59 6f 75 72 20 | 64 72 69 76 65 72 d5 73 |k. Your |driver.s|
|00001b20| 20 70 72 69 76 61 74 65 | 0d 09 73 74 6f 72 61 67 | private|..storag|
|00001b30| 65 20 77 69 6c 6c 20 62 | 65 20 73 74 6f 72 65 64 |e will b|e stored|
|00001b40| 20 69 6e 20 67 6c 6f 62 | 61 6c 20 61 6e 64 20 73 | in glob|al and s|
|00001b50| 74 61 74 69 63 20 76 61 | 72 69 61 62 6c 65 73 20 |tatic va|riables |
|00001b60| d1 ca 61 6e 64 20 74 68 | 65 20 43 6f 64 65 0d 09 |..and th|e Code..|
|00001b70| 46 72 61 67 6d 65 6e 74 | 20 4d 61 6e 61 67 65 72 |Fragment| Manager|
|00001b80| 20 77 69 6c 6c 20 68 61 | 6e 64 6c 65 20 69 6e 69 | will ha|ndle ini|
|00001b90| 74 69 61 6c 69 7a 61 74 | 69 6f 6e 2e 0d a5 09 52 |tializat|ion....R|
|00001ba0| 65 70 6c 61 63 65 20 61 | 6c 6c 20 6d 65 6d 6f 72 |eplace a|ll memor|
|00001bb0| 79 20 6d 61 6e 61 67 65 | 6d 65 6e 74 20 28 4e 65 |y manage|ment (Ne|
|00001bc0| 77 50 74 72 53 79 73 29 | 20 62 79 20 50 6f 6f 6c |wPtrSys)| by Pool|
|00001bd0| 20 41 6c 6c 6f 63 61 74 | 69 6f 6e 20 63 61 6c 6c | Allocat|ion call|
|00001be0| 73 2e 0d a5 09 41 64 64 | 20 73 75 70 70 6f 72 74 |s....Add| support|
|00001bf0| 20 66 6f 72 20 74 68 65 | 20 44 72 69 76 65 72 20 | for the| Driver |
|00001c00| 47 65 73 74 61 6c 74 20 | 50 42 53 74 61 74 75 73 |Gestalt |PBStatus|
|00001c10| 20 63 61 6c 6c 2e 0d a5 | 09 52 65 70 6c 61 63 65 | call...|.Replace|
|00001c20| 20 61 63 63 52 75 6e 20 | 73 75 70 70 6f 72 74 20 | accRun |support |
|00001c30| 62 79 20 77 69 74 68 20 | 6e 6f 6e 2d 69 6e 74 65 |by with |non-inte|
|00001c40| 72 72 75 70 74 20 63 6f | 64 65 20 74 68 61 74 20 |rrupt co|de that |
|00001c50| 69 73 20 61 76 61 69 6c | 61 62 6c 65 20 74 6f 20 |is avail|able to |
|00001c60| 74 68 65 0d 09 64 72 69 | 76 65 72 20 74 68 72 6f |the..dri|ver thro|
|00001c70| 75 67 68 20 63 61 6c 6c | 73 20 70 72 6f 76 69 64 |ugh call|s provid|
|00001c80| 65 64 20 62 79 20 74 68 | 65 20 44 72 69 76 65 72 |ed by th|e Driver|
|00001c90| 20 53 65 72 76 69 63 65 | 20 4c 69 62 72 61 72 79 | Service| Library|
|00001ca0| 2e 20 49 6e 20 6d 61 6e | 79 20 63 61 73 65 73 2c |. In man|y cases,|
|00001cb0| 0d 09 61 63 63 52 75 6e | 20 66 75 6e 63 74 69 6f |..accRun| functio|
|00001cc0| 6e 73 20 63 61 6e 20 62 | 65 20 70 72 6f 76 69 64 |ns can b|e provid|
|00001cd0| 65 64 20 74 68 72 6f 75 | 67 68 20 61 20 66 61 63 |ed throu|gh a fac|
|00001ce0| 65 6c 65 73 73 20 62 61 | 63 6b 67 72 6f 75 6e 64 |eless ba|ckground|
|00001cf0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 0d 09 6f 72 | applica|tion..or|
|00001d00| 20 49 4e 49 54 2e 0d a5 | 09 43 6f 6e 74 72 6f 6c | INIT...|.Control|
|00001d10| 20 50 61 6e 65 6c 73 20 | 61 6e 64 20 61 70 70 6c | Panels |and appl|
|00001d20| 69 63 61 74 69 6f 6e 73 | 20 63 61 6e 6e 6f 74 20 |ications| cannot |
|00001d30| 61 63 63 65 73 73 20 74 | 68 65 20 64 72 69 76 65 |access t|he drive|
|00001d40| 72 20 63 6f 64 65 20 6f | 72 20 69 74 73 0d 09 67 |r code o|r its..g|
|00001d50| 6c 6f 62 61 6c 73 20 62 | 79 20 75 73 69 6e 67 20 |lobals b|y using |
|00001d60| 76 61 6c 75 65 73 20 69 | 6e 20 74 68 65 20 44 43 |values i|n the DC|
|00001d70| 45 20 61 73 20 74 68 69 | 73 20 69 6e 66 6f 72 6d |E as thi|s inform|
|00001d80| 61 74 69 6f 6e 20 69 73 | 20 6e 6f 20 6c 6f 6e 67 |ation is| no long|
|00001d90| 65 72 20 76 69 73 69 62 | 6c 65 0d 09 74 6f 20 74 |er visib|le..to t|
|00001da0| 68 65 20 64 72 69 76 65 | 72 2e 20 49 66 20 6e 65 |he drive|r. If ne|
|00001db0| 63 65 73 73 61 72 79 2c | 20 79 6f 75 20 73 68 6f |cessary,| you sho|
|00001dc0| 75 6c 64 20 63 72 65 61 | 74 65 20 61 20 73 65 74 |uld crea|te a set|
|00001dd0| 20 6f 66 20 61 63 63 65 | 73 73 6f 72 20 50 42 43 | of acce|ssor PBC|
|00001de0| 6f 6e 74 72 6f 6c 0d 09 | 6f 72 20 50 42 53 74 61 |ontrol..|or PBSta|
|00001df0| 74 75 73 20 66 75 6e 63 | 74 69 6f 6e 73 20 74 68 |tus func|tions th|
|00001e00| 61 74 20 6d 61 6e 69 70 | 75 6c 61 74 65 20 79 6f |at manip|ulate yo|
|00001e10| 75 72 20 64 72 69 76 65 | 72 d5 73 20 70 72 69 76 |ur drive|r.s priv|
|00001e20| 61 74 65 20 76 61 6c 75 | 65 73 2e 20 54 68 65 0d |ate valu|es. The.|
|00001e30| 09 44 72 69 76 65 72 20 | 47 65 73 74 61 6c 74 20 |.Driver |Gestalt |
|00001e40| 68 61 6e 64 6c 65 72 20 | 61 6e 64 20 74 68 65 20 |handler |and the |
|00001e50| 70 72 69 76 61 74 65 20 | 64 65 62 75 67 67 69 6e |private |debuggin|
|00001e60| 67 20 63 6f 6e 74 72 6f | 6c 20 61 6e 64 20 73 74 |g contro|l and st|
|00001e70| 61 74 75 73 20 68 61 6e | 64 6c 65 72 73 0d 09 69 |atus han|dlers..i|
|00001e80| 6e 20 74 68 65 20 73 61 | 6d 70 6c 65 20 6d 61 79 |n the sa|mple may|
|00001e90| 20 62 65 20 75 73 65 64 | 20 61 73 20 61 20 6d 6f | be used| as a mo|
|00001ea0| 64 65 6c 2e 20 57 68 69 | 6c 65 20 79 6f 75 20 63 |del. Whi|le you c|
|00001eb0| 6f 75 6c 64 20 63 6f 6e | 63 65 69 76 61 62 6c 79 |ould con|ceivably|
|00001ec0| 20 61 63 63 65 73 73 0d | 09 64 72 69 76 65 72 20 | access.|.driver |
|00001ed0| 76 61 72 69 61 62 6c 65 | 73 20 62 79 20 75 73 69 |variable|s by usi|
|00001ee0| 6e 67 20 74 68 65 20 43 | 6f 64 65 20 46 72 61 67 |ng the C|ode Frag|
|00001ef0| 6d 65 6e 74 20 4d 61 6e | 61 67 65 72 20 28 74 68 |ment Man|ager (th|
|00001f00| 65 20 64 72 69 76 65 72 | 20 77 6f 75 6c 64 0d 09 |e driver| would..|
|00001f10| 70 72 65 73 75 6d 61 62 | 6c 79 20 65 78 70 6f 72 |presumab|ly expor|
|00001f20| 74 20 69 74 73 20 76 61 | 72 69 61 62 6c 65 73 29 |t its va|riables)|
|00001f30| 2c 20 74 68 69 73 20 73 | 68 6f 75 6c 64 20 6e 6f |, this s|hould no|
|00001f40| 74 20 62 65 20 75 73 65 | 64 20 66 6f 72 0d 09 70 |t be use|d for..p|
|00001f50| 72 6f 64 75 63 74 69 6f | 6e 20 64 72 69 76 65 72 |roductio|n driver|
|00001f60| 73 2e 20 49 6e 73 74 65 | 61 64 2c 20 49 20 77 6f |s. Inste|ad, I wo|
|00001f70| 75 6c 64 20 72 65 63 6f | 6d 6d 65 6e 64 20 65 78 |uld reco|mmend ex|
|00001f80| 70 6f 72 74 69 6e 67 20 | 64 72 69 76 65 72 20 67 |porting |driver g|
|00001f90| 6c 6f 62 61 6c 0d 09 75 | 73 69 6e 67 20 61 20 70 |lobal..u|sing a p|
|00001fa0| 72 69 76 61 74 65 20 50 | 42 53 74 61 74 75 73 20 |rivate P|BStatus |
|00001fb0| 63 61 6c 6c 20 61 73 20 | 69 73 20 64 6f 6e 65 20 |call as |is done |
|00001fc0| 69 6e 20 74 68 65 20 73 | 61 6d 70 6c 65 2e 0d a5 |in the s|ample...|
|00001fd0| 09 49 6e 20 74 68 65 20 | 6e 65 77 20 66 72 61 6d |.In the |new fram|
|00001fe0| 65 77 6f 72 6b 2c 20 64 | 72 69 76 65 72 73 20 61 |ework, d|rivers a|
|00001ff0| 72 65 20 6c 69 6d 69 74 | 65 64 20 74 6f 20 61 20 |re limit|ed to a |
|00002000| 73 6d 61 6c 6c 20 73 75 | 62 73 65 74 20 6f 66 20 |small su|bset of |
|00002010| 74 68 65 20 65 78 69 73 | 74 69 6e 67 0d 09 6f 70 |the exis|ting..op|
|00002020| 65 72 61 74 69 6e 67 20 | 73 79 73 74 65 6d 20 28 |erating |system (|
|00002030| 74 68 65 20 d2 53 79 73 | 74 65 6d 20 50 72 6f 67 |the .Sys|tem Prog|
|00002040| 72 61 6d 6d 69 6e 67 20 | 49 6e 74 65 72 66 61 63 |ramming |Interfac|
|00002050| 65 d3 29 2e 20 54 68 69 | 73 20 77 69 6c 6c 20 72 |e.). Thi|s will r|
|00002060| 65 71 75 69 72 65 0d 09 | 73 6f 6d 65 20 72 65 74 |equire..|some ret|
|00002070| 68 69 6e 6b 69 6e 67 20 | 6f 66 20 6d 61 6e 79 20 |hinking |of many |
|00002080| 64 72 69 76 65 72 73 2e | 20 46 6f 72 20 65 78 61 |drivers.| For exa|
|00002090| 6d 70 6c 65 2c 20 74 68 | 65 79 20 63 61 6e 6e 6f |mple, th|ey canno|
|000020a0| 74 20 6c 6f 61 64 20 69 | 6e 66 6f 72 6d 61 74 69 |t load i|nformati|
|000020b0| 6f 6e 0d 09 66 72 6f 6d | 20 72 65 73 6f 75 72 63 |on..from| resourc|
|000020c0| 65 73 2e 20 54 68 65 20 | 6e 65 77 20 61 72 63 68 |es. The |new arch|
|000020d0| 69 74 65 63 74 75 72 65 | 20 69 73 20 6e 6f 74 20 |itecture| is not |
|000020e0| 63 6f 6d 70 6c 65 74 65 | 6c 79 20 64 65 66 69 6e |complete|ly defin|
|000020f0| 65 64 20 61 74 20 74 68 | 69 73 0d 09 77 72 69 74 |ed at th|is..writ|
|00002100| 69 6e 67 2c 20 61 6e 64 | 20 61 64 64 69 74 69 6f |ing, and| additio|
|00002110| 6e 61 6c 20 63 61 70 61 | 62 69 6c 69 74 69 65 73 |nal capa|bilities|
|00002120| 20 77 69 6c 6c 20 6c 69 | 6b 65 6c 79 20 62 65 63 | will li|kely bec|
|00002130| 6f 6d 65 20 61 76 61 69 | 6c 61 62 6c 65 2e 0d a5 |ome avai|lable...|
|00002140| 09 49 66 20 79 6f 75 72 | 20 64 72 69 76 65 72 20 |.If your| driver |
|00002150| 6d 61 79 20 62 65 20 75 | 73 65 64 20 61 73 20 61 |may be u|sed as a|
|00002160| 20 62 6f 6f 74 73 74 72 | 61 70 20 64 65 76 69 63 | bootstr|ap devic|
|00002170| 65 2c 20 70 6c 61 6e 20 | 66 6f 72 20 6c 6f 61 64 |e, plan |for load|
|00002180| 69 6e 67 20 74 68 65 0d | 09 66 75 6c 6c 20 64 72 |ing the.|.full dr|
|00002190| 69 76 65 72 20 69 6e 74 | 6f 20 74 68 65 20 63 61 |iver int|o the ca|
|000021a0| 72 64 27 73 20 45 45 50 | 52 4f 4d 20 61 6e 64 20 |rd's EEP|ROM and |
|000021b0| 77 72 69 74 65 20 61 6e | 20 4f 70 65 6e 20 46 69 |write an| Open Fi|
|000021c0| 72 6d 77 61 72 65 20 62 | 6f 6f 74 20 64 72 69 76 |rmware b|oot driv|
|000021d0| 65 72 2e 0d 0d 0d 43 20 | 6f 72 20 43 2b 2b 0d 7e |er....C |or C++.~|
|000021e0| 7e 7e 7e 7e 7e 7e 0d 43 | 2c 20 6f 66 20 63 6f 75 |~~~~~~.C|, of cou|
|000021f0| 72 73 65 2e 20 54 68 65 | 20 6f 6e 6c 79 20 61 64 |rse. The| only ad|
|00002200| 76 61 6e 74 61 67 65 20 | 6f 66 20 43 2b 2b 20 69 |vantage |of C++ i|
|00002210| 73 20 74 68 65 20 61 62 | 69 6c 69 74 79 20 74 6f |s the ab|ility to|
|00002220| 20 77 72 69 74 65 20 61 | 6e 20 62 61 73 65 20 63 | write a|n base c|
|00002230| 6c 61 73 73 0d 66 6f 72 | 20 44 6f 44 72 69 76 65 |lass.for| DoDrive|
|00002240| 72 49 4f 2e 20 53 69 6e | 63 65 20 74 68 65 20 66 |rIO. Sin|ce the f|
|00002250| 72 61 6d 65 77 6f 72 6b | 20 69 73 20 6f 6e 6c 79 |ramework| is only|
|00002260| 20 61 20 66 65 77 20 70 | 61 67 65 73 20 6f 66 20 | a few p|ages of |
|00002270| 63 6f 64 65 2c 20 74 68 | 69 73 20 69 73 20 61 0d |code, th|is is a.|
|00002280| 73 6d 61 6c 6c 20 61 64 | 76 61 6e 74 61 67 65 20 |small ad|vantage |
|00002290| 69 6e 64 65 65 64 2e 20 | 57 72 69 74 69 6e 67 20 |indeed. |Writing |
|000022a0| 69 6e 20 43 2b 2b 20 62 | 72 69 6e 67 73 20 77 69 |in C++ b|rings wi|
|000022b0| 74 68 20 69 74 20 74 68 | 65 20 64 69 73 61 64 76 |th it th|e disadv|
|000022c0| 61 6e 74 61 67 65 20 6f | 66 20 61 0d 6d 75 63 68 |antage o|f a.much|
|000022d0| 20 6d 6f 72 65 20 64 69 | 66 66 69 63 75 6c 74 20 | more di|fficult |
|000022e0| 64 65 62 75 67 67 69 6e | 67 20 73 69 74 75 61 74 |debuggin|g situat|
|000022f0| 69 6f 6e 2c 20 65 73 70 | 65 63 69 61 6c 6c 79 20 |ion, esp|ecially |
|00002300| 69 66 20 79 6f 75 20 74 | 61 6b 65 20 61 64 76 61 |if you t|ake adva|
|00002310| 6e 74 61 67 65 20 6f 66 | 0d 69 74 73 20 6f 70 65 |ntage of|.its ope|
|00002320| 72 61 74 6f 72 20 6f 76 | 65 72 72 69 64 65 2c 20 |rator ov|erride, |
|00002330| 6d 65 74 68 6f 64 20 6f | 76 65 72 72 69 64 65 2c |method o|verride,|
|00002340| 20 61 6e 64 20 6f 62 6a | 65 63 74 20 63 72 65 61 | and obj|ect crea|
|00002350| 74 69 6f 6e 20 63 61 70 | 61 62 69 6c 69 74 69 65 |tion cap|abilitie|
|00002360| 73 2e 20 41 6e 64 2c 0d | 69 66 20 79 6f 75 20 64 |s. And,.|if you d|
|00002370| 6f 6e d5 74 2c 20 77 68 | 79 20 62 6f 74 68 65 72 |on.t, wh|y bother|
|00002380| 20 69 6e 20 74 68 65 20 | 66 69 72 73 74 20 70 6c | in the |first pl|
|00002390| 61 63 65 2e 0d 57 72 69 | 74 65 20 79 6f 75 72 20 |ace..Wri|te your |
|000023a0| 64 72 69 76 65 72 20 69 | 6e 20 76 65 72 79 20 63 |driver i|n very c|
|000023b0| 6c 65 61 6e 2c 20 76 65 | 72 79 20 63 6c 65 61 72 |lean, ve|ry clear|
|000023c0| 20 43 2e 20 4d 65 61 73 | 75 72 65 20 69 74 73 20 | C. Meas|ure its |
|000023d0| 70 65 72 66 6f 72 6d 61 | 6e 63 65 20 28 75 73 65 |performa|nce (use|
|000023e0| 0d 74 68 65 20 6e 65 77 | 20 6e 61 6e 6f 73 65 63 |.the new| nanosec|
|000023f0| 6f 6e 64 20 6c 69 62 72 | 61 72 79 29 2c 20 61 6e |ond libr|ary), an|
|00002400| 64 20 68 61 6e 64 2d 74 | 75 6e 65 20 6f 6e 6c 79 |d hand-t|une only|
|00002410| 20 74 68 6f 73 65 20 70 | 61 72 74 73 20 6f 66 20 | those p|arts of |
|00002420| 74 68 65 20 63 6f 64 65 | 20 74 68 61 74 0d 6e 65 |the code| that.ne|
|00002430| 65 64 20 74 75 6e 69 6e | 67 2e 0d 0d 0d 46 75 72 |ed tunin|g....Fur|
|00002440| 74 68 65 72 20 52 65 66 | 65 72 65 6e 63 65 3a 0d |ther Ref|erence:.|
|00002450| 7e 7e 7e 7e 7e 7e 7e 7e | 7e 7e 7e 7e 7e 7e 7e 0d |~~~~~~~~|~~~~~~~.|
|00002460| a5 09 49 6e 73 69 64 65 | 20 4d 61 63 69 6e 74 6f |..Inside| Macinto|
|00002470| 73 68 20 44 65 76 69 63 | 65 73 2e 0d a5 09 44 65 |sh Devic|es....De|
|00002480| 73 69 67 6e 69 6e 67 20 | 50 43 49 20 43 61 72 64 |signing |PCI Card|
|00002490| 73 20 61 6e 64 20 44 72 | 69 76 65 72 73 20 66 6f |s and Dr|ivers fo|
|000024a0| 72 20 50 6f 77 65 72 20 | 4d 61 63 69 6e 74 6f 73 |r Power |Macintos|
|000024b0| 68 20 43 6f 6d 70 75 74 | 65 72 73 0d 0d 00 00 00 |h Comput|ers.....|
|000024c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002500| 00 00 01 00 00 00 01 96 | 00 00 00 96 00 00 00 5a |........|.......Z|
|00002510| cf 93 3f 1e 05 e4 9e 1f | ff 2e 7f 9e 00 06 7c 99 |..?.....|......|.|
|00002520| ff 3b ff f0 28 fe 9d 3e | b7 78 00 00 00 65 a8 9f |.;..(..>|.x...e..|
|00002530| 1f 46 72 61 6d 65 77 6f | 72 6b 20 4e 43 52 20 53 |.Framewo|rk NCR S|
|00002540| 61 6d 70 6c 65 20 44 69 | 73 63 75 73 73 69 6f 6e |ample Di|scussion|
|00002550| 00 00 54 45 58 54 74 74 | 78 74 01 00 00 14 00 00 |..TEXTtt|xt......|
|00002560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002570| 00 00 ab 87 97 69 00 00 | 24 3d 00 00 01 f0 b6 22 |.....i..|$=....."|
|00002580| 27 af af e3 b0 ff 4f 45 | f9 2c 3f fe 20 87 fb 75 |'.....OE|.,?. ..u|
|00002590| 06 9a 7c 00 00 00 40 7f | e0 40 30 40 28 40 3c 40 |..|...@.|.@0@(@<@|
|000025a0| 04 40 04 4b 64 40 04 4f | 64 40 04 4d a4 40 04 40 |.@.Kd@.O|d@.M.@.@|
|000025b0| 04 40 04 40 04 7f fc 7f | e0 7f f0 7f f8 7f fc 7f |.@.@....|........|
|000025c0| fc 7f fc 7f fc 7f fc 7f | fc 7f fc 7f fc 7f fc 7f |........|........|
|000025d0| fc 7f fc 7f fc 7f fc 00 | 00 00 47 a8 9f 65 72 00 |........|..G..er.|
|000025e0| 12 09 01 00 00 00 80 00 | 03 03 fe 00 00 20 7f f8 |........|..... ..|
|000025f0| 33 e0 00 00 1e 18 07 f9 | 51 80 04 fc f0 ba cb fe |3.......|Q.......|
|00002600| 00 00 00 3e 00 03 00 00 | 00 00 00 10 00 0c 00 01 |...>....|........|
|00002610| 00 00 00 00 00 00 00 00 | 00 00 00 00 17 6d 00 10 |........|.....m..|
|00002620| 00 0c 00 01 04 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002630| 17 9f 00 10 00 0c 00 01 | 00 00 00 00 00 00 00 00 |........|........|
|00002640| 00 00 00 00 00 48 00 0a | 43 6f 75 72 69 65 72 00 |.....H..|Courier.|
|00002650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002660| 00 00 00 00 00 00 00 00 | 00 03 00 04 00 56 00 0a |........|.....V..|
|00002670| 01 d7 02 05 00 56 00 0a | 01 d7 02 05 ab 8f 15 4f |.....V..|.......O|
|00002680| 00 00 23 b7 00 00 23 b7 | 00 00 05 b2 01 00 00 00 |..#...#.|........|
|00002690| 00 04 00 01 00 01 00 00 | 01 00 00 00 01 96 00 00 |........|........|
|000026a0| 00 96 00 00 00 5a 00 98 | a8 08 15 4e 00 00 00 1c |.....Z..|...N....|
|000026b0| 00 5a 00 02 73 74 79 6c | 00 00 00 1a 4d 50 53 52 |.Z..styl|....MPSR|
|000026c0| 00 00 00 26 4d 57 42 42 | 00 00 00 32 00 80 ff ff |...&MWBB|...2....|
|000026d0| 00 00 00 00 00 00 00 00 | 03 ed ff ff 00 00 00 42 |........|.......B|
|000026e0| 00 00 00 00 03 f0 ff ff | 00 00 00 8e 00 00 00 00 |........|........|
|000026f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+